<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加评论</title>
<include file="Public/header" />
<link type="text/css" rel="stylesheet" href="__CSS__/myup.css" />
<link rel="stylesheet" href="__PUBLIC__/kindeditor-4.1.10/themes/default/default.css" />
<script charset="utf-8" src="__PUBLIC__/kindeditor-4.1.10/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor-4.1.10/lang/zh_CN.js"></script>
<script charset="utf-8" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
<script charset="utf-8" src="__PUBLIC__/Js/jquery.validate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/myup.js"></script>
<script type="text/javascript">
$(function(){
	 $("#myform").validate({
     	 rules: {
     	 	title : {required: true,},
            type_id : {required: true,},
     	 },
     	 messages : {
     	 	title : {required: '请输入标题！',},
            type_id : {required: '请选择分类！',},
     	 },
     })
})	
</script>

 
</head>


<body>

        <div class="list_vmall_man">
          <div class="list_vmall_le">
        	   <include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
           </div>
            <div class="list_vmall_rig">
             <ul class="breadcrumb">
                    <li><a href="<{:U('index')}>">帖子分类</a></li>
                    <li ><a href="<{:U('Group/topic',array('group_id'=>$pidData['pid'],'type'=>$pidData['type']))}>"><{$pidData.pidData.group_name}></a></li>
                    <li >
                    <a href="<{:U('Group/comment',array('topic_id'=>$pidData['topic_id'],'type'=>$pidData['type']))}>">
                    <{$pidData.title}></a></li>
                     <li >添加评论</li>
                    
                   
                </ul>
            	 <form enctype="multipart/form-data" action="<{:U('group/add_comment')}>" method="post" id="myform">
            	  <input type="hidden"  name="id" value="<{$data.id}>">
                <div class="list_vmall_bort">
                	<div class="vmall_padi">
                    	 
						<div class="vmall_cle">
                            <label  class="vmall_te_le">回复主题</label>
                            <div class="vmaal_rols">
                            <textarea readonly="readonly" style="width: 480px; height: 60px;" class="input_a1" id="textarea-content" name="content" rows="2"><{$pname}></textarea>   <input type="hidden" name="pid" value="<{$pid}>" />
                            </div>
                        </div>
			
						<div class="vmall_cle">
                            <label for="input-title" class="vmall_te_le">用户ID</label>
                            <div class="vmaal_rols">
                                <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="author" name="user_id" value="<{$user_id}>">
								   <input type="hidden" class="vmaal_sinw1 input_a1 int_wod" id="to_comment_id" name="to_comment_id" value="<{$data.id}>">
								     <input type="hidden" class="vmaal_sinw1 input_a1 int_wod" id="to_user_id" name="to_user_id" value="<{$data.user_id}>">
       
                            </div>
                        </div>
                         
 
						<div class="vmall_cle">
                            <label for="input-title" class="vmall_te_le">类型</label>
                            <div class="vmaal_rols">
                                 <input type="text"  class="vmaal_sinw1 input_a1 int_wod" readonly="readonly" name="type" value="<{$type}>" />
                            </div>
                        </div>
                        
                        <div class="vmall_cle">
                            <label for="textarea-content" class="vmall_te_le">回复</label>
                            <div class="vmaal_rols">
                                <textarea  style="width: 480px; height: 60px;" class="input_a1" id="textarea-content" name="content" rows="2"><{$data.content}></textarea>
                                 
                            </div>
                        </div>
                       
                        <div class="vmall_cle">
                            <div class="vmaal_rols">
                                <button class="v_mall_q_1" style="border:0; height:32px; padding-top:0; cursor:pointer;" type="submit">确认保存</button>
                            </div>
                        </div>
                        
                      
                        
                    </div>
                </div>
                </form>
            </div>
            

        </div>

</body>
</html>
